import { Body, Controller, Post } from '@nestjs/common';
import { QQEmailService } from './email.service';

@Controller('components/email')
export class QQEmailController {
  constructor(private emailService: QQEmailService) {}

  @Post('/sendCode')
  async sendEmailCode(@Body() data) {
    return this.emailService.sendEmailCode(data);
  }
}
